<!DOCTYPE html>
<html>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<noscript>
	<meta http-equiv="Set-Cookie"
		content="DmiUg5zWxt=_RsTd70sowtNsHpKDGltLq; Path=/; expires=Sat, 22 Nov 2025 08:06:27 GMT">
	<meta http-equiv="refresh"
		content="0;URL=/html5/newversion/user/reg.html?f=personindex&DmiUg5zWxt=cfOU1X4oCtVRpD3cAiQPvA">
</noscript>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="telephone=no,email=no" name="format-detection">
<meta content="fullscreen=yes,preventMove=no" name="ML-Config">
<title>神州租车—中国租车领导者!天天超低价!!!</title>
<meta name="description"
	content="神州租车-全国70大城市,90大机场高铁,万辆新车,不限里程,价格超低,手续便捷,服务尽心,24小时服务,携手贝克汉姆共启云战略.Tel:400-616-6666">
<meta name="keywords"
	content="租车，租车网，租车公司，汽车租赁，H_lYMbU-rQ0RUInbjlkbxqyQBhQ">
<meta name="viewport"
	content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">
<meta name="apple-mobile-web-app-title" content="神州租车">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta content="telephone=no" name="format-detection">
<meta name="baidu-tc-cerfication"
	content="55c603db1cd78c7f7ab7686162824f23">


<link rel="stylesheet" type="text/css"
	href="/css/H5phone/register_files/zcbase@0ec0b016a8.css">
<link rel="stylesheet" type="text/css"
	href="/css/H5phone/register_files/personalCenter@2aa330b0bd.css">
</head>

<body>
	<header class="zc_header_bd">
		<div class="getback" data-url="/jump/logins" style="white-space: normal">
			<span class="getbackimg">&nbsp;</span>
		</div>
		<h1 class="header_title" id="page_title"
			lcwa-se="注册页-注册成功,注册页-注册,注册页-验证码,注册页-获取验证码">会员注册</h1>
	</header>
	<div class="hotel-page-pt50 zc_common">
		<ul>
			<li class="showMsg1 brdt">
				<div>
					<span>验证码短信已发送至 </span> <span class="contact" id="showMobile">123213</span>
				</div>
			</li>
			<li class="showMsg2 brdt">
				<div>
					<span>验证码发送超过3次，请联系客服： </span> <span class="contact">4006166666</span>
				</div>

			</li>

			<li class="zc_reset_bd"><label class="phoneNo">手机号</label> <a
				class="reset zc_reset"></a> <input id="xmobile" name="xmobile"
				type="tel" class="phoneipt reset_ipt" placeholder="请输入手机号"
				maxlength="11"></li>
			<li id="yzmLi" class="brb"><label class="yzm">用户名</label> <input
				id="regcode" name="regcode" type="tel" placeholder="请输入用户名"
				class="phoneyzm" maxlength="6"></li>
			<li id="yzmLi" class="brdt brb"><label class="yzm">动态码 </label>
				<input id="dongtai" name="dongtai" style="width: 150px" type="tel"
				placeholder="请输入手机验证码" class="phoneyzm" maxlength="6"> <label
				class="yzmpic btn-getdtm" onclick="timedCount()" id="getYzmBt"style="width: 120px; background-color: rgb(250, 251, 252); color: #fabe00; border: 1px solid #ffde74; text-align: center; vertical-align: super">
					<span id="focus" style="position: relative; bottom: 10px;">获取手机动态码</span>
			</label></li>

			<li class="brb brdt zc_reset_bd"><label class="password">密&nbsp;&nbsp;&nbsp;码</label>
				<a class="reset zc_reset"></a> <input id="xpassword1"
				name="xpassword1" type="password"
				class="passwordipt password_input reset_ipt"
				placeholder="6-8位字母、数字和符号"></li>

			<li class="brb brdt zc_reset_bd"><label class="password">确&nbsp;&nbsp;&nbsp;认</label>
				<a class="reset zc_reset"></a> <input id="xpasswordT"
				name="xpasswordT" type="password"
				class="passwordipt password_confirm reset_ipt" placeholder="与密码保持一致">
			</li>

			<!--
				作者：1248739088@qq.com
				时间：2018-11-13
				描述：优惠码，暂不写
				-->
			<!--<li class="brb mt20 bgtr">
					<label class="usyhm">优惠码</label>
					<input id="preferentialCode" name="preferentialCode" class="textipt usyhm" type="text" placeholder="请输入优惠码">
					<button class="yhmxt">选填</button>
				</li>-->

			<div class="ac" id="mobileIsUsed"
				style="display: none; padding: 5px; color: red;"></div>
			<li class="bgnone mt20"><button type="button" id="reg"
					class="loginbtn">注册</button></li>
		</ul>
		<p class="agreecon">
			<input type="radio" class="agreebtn selected" name="agree" value="1"
				id="agree"><label for="agree">我已阅读并同意</label> <a
				href="javascript:;">《神州租车会员服务条款》</a>
		</p>
	</div>
	<!--登陆转圈-->
	<div id="loading-mask" class="mask" style="display: none;">
		<div class="loading-new">
			<span class="l-logo"></span><span class="l-film animate-loading"></span>
		</div>
	</div>
	<script type="text/javascript" src="/js/jquery-3.2.1.js"></script>
	<script type="text/javascript">
		var ts = 60; //times60
		var theTimer
		var phoneNum=0;
		var yanNum=0;
	
		if(yanNum>=3){
			$("#focus").text("请联系客服");
			$("#getYzmBt").css({
				"pointer-events" : "none",
				"background-color" : "#FFFAEA",
				"color" : "#FABE00",
				"border" : "solid 1px #FFDE74	"
			})
		}
		
		function timedCount() {
			var phones =$("#xmobile").val();
			var hidd_me = document.getElementById("mobileIsUsed");
			var load_mask = document.getElementById("loading-mask")
			if (phones.length != 0) {

				if (!(/^1[34578]\d{9}$/.test(phones))) {
					hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("手机号输入格式不正确，请重新输入")
					return false;
				}
			} else {
				hidd_me.style.display = 'block'
				$("#mobileIsUsed").text("手机号码不能为空，请重新输入")
				return false;
			}
			$(".brdt").css("display","block");
			$("#showMobile").html(phones);
			yanNum+1;
			theTimer = setTimeout("timedCount()", 1000);
			$("#focus").text((ts = ts - 1) + "秒后重新获取");
			if (ts > 0) {
				$("#getYzmBt").css("pointer-events", "none")
				$("#getYzmBt").css({
					"background-color" : "#FAFBFC",
					"color" : "#93939E",
					"border" : "solid 1px #E9EBEE",
					"vertical-align" : "super"
				})

			} else {
				$("#focus").text("获取手机动态码");
				$("#getYzmBt").css({
					"pointer-events" : "auto",
					"background-color" : "#FFFAEA",
					"color" : "#FABE00",
					"border" : "solid 1px #FFDE74	"
				})

				ts = 60;
				clearTimeout(theTimer);
			}
		}
		
		
		
		$("#getYzmBt").click(function(){
			var phones =$("#xmobile").val();
			$.ajax({
				type : "post",//请求类型
				url : "/toPhone",
				data : {
					"phone" : phones
				},//请求参数
				dataType : "json",//ajax接口（请求url）返回的数据类型
				success : function(data) {//data：返回数据（json对象）
					phoneNum = data;
					
				},
				error : function(data) {//当访问时候，404，500 等非200的错误状态码
				}

			});
		})
		
			
		$(".getback").click(function(){
	window.location.href=$(".getback").data("url");
})
			
		
		$(".loginbtn").click(function() {

			var userName = $("#regcode").val().trim();
			var phone = $("#xmobile").val().trim();
			var regcode = $("#dongtai").val().trim();
			var xpassword1 = $("#xpassword1").val().trim();
			var xpasswordT = $("#xpasswordT").val().trim();
			var hidd_me = document.getElementById("mobileIsUsed");
			var load_mask = document.getElementById("loading-mask")
			//手机号
			if (phone.length != 0) {

				if (!(/^1[34578]\d{9}$/.test(phone))) {
					hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("手机号输入格式不正确，请重新输入")
					return false;
				}
			} else {
				hidd_me.style.display = 'block'
				$("#mobileIsUsed").text("手机号码不能为空，请重新输入")
				return false;
			}
			//用户名
			if (userName.length != 0) {
				reg = /^[\u0391-\uFFE5]+$/;
				if (!reg.test(userName)) {
					hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("您输入的用户名不正确，请输入中文")
					return false;
				}
			} else {
				hidd_me.style.display = 'block'
				$("#mobileIsUsed").text("您输入的用户名不能为空，请重新输入")
				return false;
			}
			//验证码
			if (regcode.length == 0) {
				hidd_me.style.display = 'block'
				$("#mobileIsUsed").text("验证码不能为空，请重新输入")
				return false;
			}
			//密码
			if (xpassword1.length != 0) {
				if (xpassword1.length > 8 && xpassword1.length < 6) {
					hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("密码在6-8位字母，请重新输入")
					return false;
				}
				pwd = /^(?![^a-zA-Z]+$)(?!\D+$)/;
				if (!pwd.test(xpassword1)) {
					hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("密码请包涵数字字母，请重新输入")
					return false;
				}
			} else {
				hidd_me.style.display = 'block'
				$("#mobileIsUsed").text("密码不能为空，请重新输入")
				return false;
			}
			//确认
			if (xpasswordT.length != 0) {
				if (xpasswordT != xpassword1) {
					hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("两次密码不一致，请重新输入")
					return false;
				}
			} else {
				hidd_me.style.display = 'block'
				$("#mobileIsUsed").text("确认密码不能为空，请重新输入")
				return false;
			}

			hidd_me.style.display = 'none'
			
			
		
			
			$(".brdt").css("display","none");
			if(regcode!=phoneNum){
				hidd_me.style.display = 'block'
					$("#mobileIsUsed").text("验证码输入错误，请重新输入")
				return false;
			}
			load_mask.style.display = "block";
			//
			$.ajax({
				type : "get",//请求类型
				url : "/users/H5registered",
				data : {
					"phone" : phone,
					"userName":userName,
					"userPwd":xpasswordT
				},//请求参数
				dataType : "json",//ajax接口（请求url）返回的数据类型
				success : function(data) {//data：返回数据（json对象）
					if(data.msg){
						$("#message").text("注册成功")
						setTimeout(function(){
							$("#loading-mask").show();
								
						},1500)
						location.href="/jump/logins";
					}
					
				},
				error : function(data) {//当访问时候，404，500 等非200的错误状态码
				}

			});
			
			

		})
	</script>
</body>


</html>